package com.mango.ch10;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

import org.apache.hadoop.io.Writable;

public class I7Pair implements Writable {
	private Integer _1;
	private Integer _2;
	private Integer _3;
	private Integer _4;
	private Integer _5;
	private Integer _6;
	private Integer _7;

	public I7Pair(Integer _1, Integer _2, Integer _3, Integer _4, Integer _5, Integer _6, Integer _7) {
		super();
		this._1 = _1;
		this._2 = _2;
		this._3 = _3;
		this._4 = _4;
		this._5 = _5;
		this._6 = _6;
		this._7 = _7;
	}

	public I7Pair() {
	}

	@Override
	public String toString() {
		return _1 + "\t" + _2 + "\t" + _3 + "\t" + _4 + "\t" + _5 + "\t" + _6 + "\t" + _7;
	}

	public Integer get_1() {
		return _1;
	}

	public void set_1(Integer _1) {
		this._1 = _1;
	}

	public Integer get_2() {
		return _2;
	}

	public void set_2(Integer _2) {
		this._2 = _2;
	}

	public Integer get_3() {
		return _3;
	}

	public void set_3(Integer _3) {
		this._3 = _3;
	}

	public Integer get_4() {
		return _4;
	}

	public void set_4(Integer _4) {
		this._4 = _4;
	}

	public Integer get_5() {
		return _5;
	}

	public void set_5(Integer _5) {
		this._5 = _5;
	}

	public Integer get_6() {
		return _6;
	}

	public void set_6(Integer _6) {
		this._6 = _6;
	}

	public Integer get_7() {
		return _7;
	}

	public void set_7(Integer _7) {
		this._7 = _7;
	}

	@Override
	public void write(DataOutput out) throws IOException {
		// TODO Auto-generated method stub
		out.writeInt(this._1);
		out.writeInt(this._2);
		out.writeInt(this._3);
		out.writeInt(this._4);
		out.writeInt(this._5);
		out.writeInt(this._6);
		out.writeInt(this._7);
	}

	@Override
	public void readFields(DataInput in) throws IOException {
		// TODO Auto-generated method stub
		this._1 = in.readInt();
		this._2 = in.readInt();
		this._3 = in.readInt();
		this._4 = in.readInt();
		this._5 = in.readInt();
		this._6 = in.readInt();
		this._7 = in.readInt();
	}

}
